]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: hide provider actors when they're created
authorCosimo Cecchi <cosimo@endlessm.com>
Tue, 30 Sep 2014 01:51:24 +0000 (18:51 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 30 Sep 2014 05:42:25 +0000 (22:42 -0700)
When the overview is created, search is populated with one actor for
each provider. As they're not hidden though, they will contribute to the
overall size request of the search page, which will shift upwards the
overview grid.

Reviewed-By: Jasper St. Pierre <jstpierre@mecheye.net>
js/ui/search.js

index 8d41ae6cc4a02b21c54429bc3dc1e27baf9286d2..8e6b1ddb4179db7d0a93e9f09e01506680bf4006 100644 (file)
@@ -535,6 +535,7 @@ const SearchResults = new Lang.Class({
             providerDisplay = new GridSearchResults(provider, this.actor);
 
         providerDisplay.connect('key-focus-in', Lang.bind(this, this._keyFocusIn));
+        providerDisplay.actor.hide();
         this._content.add(providerDisplay.actor);
         provider.display = providerDisplay;
     },